//
//  ConstantConfig.h
//  CardToolClient
//
//  Created by zzs on 15/8/27.
//  Copyright (c) 2015年 zzs. All rights reserved.
//

#ifndef CardToolClient_ConstantConfig_h
#define CardToolClient_ConstantConfig_h
/******************宏定义*************************************/

// MainScreen Height&Width
//屏幕宽高
#define SCREEN_HEIGHT [[UIScreen mainScreen]bounds].size.height
#define SCREEN_WIDTH [[UIScreen mainScreen]bounds].size.width
#define kDeviceVersion                      [[UIDevice currentDevice].systemVersion floatValue]

#define kScreenViewWidth                    [UIScreen mainScreen].bounds.size.width

#define kScreenViewHeight                   [UIScreen mainScreen].bounds.size.height

#define kScreenViewBounds                   [UIScreen mainScreen].bounds


#define SharedAppDelegate          ((AppDelegate*)[[UIApplication sharedApplication] delegate])


#define AppCurrentVersion          [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]//当前版本号
#define HUILocalString(text)            NSLocalizedString((text), nil)


//常用函数
//====================================================
// 用途: color
//====================================================
#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#define MyPROFILE_COLOR     [UIColor colorWithHexString:@"#37D961"]



//检测字符串为空
#define KCNSSTRING_ISEMPTY(str) (str == nil || [str isEqual:[NSNull null]] || str.length <= 0)

/****************各个single的简写*************************************/
#define SharedLocationManager               [HUILocationManager sharedManager]
#define SharedUserInfo                      [UserInfo SharedUserfo]

//字符串不为空
#define IS_NOT_EMPTY(string) (string !=nil && ![string isKindOfClass:[NSNull class]] && ![@"" isEqualToString:string] && ![@"NULL" isEqualToString:string] && ![@"null" isEqualToString:string])
#endif
